<template>
  <view class="profile-container">
    <view class="profile-header">
      <view class="profile-avatar">
        <image src="/static/avatar.png" mode="aspectFill"></image>
      </view>
      <view class="profile-info">
        <text class="profile-name">张三</text>
        <text class="profile-phone">138****8888</text>
      </view>
    </view>

    <view class="profile-content">
      <view class="menu-list">
        <view class="menu-item" v-for="(item, index) in menuList" :key="index">
          <view class="menu-icon">
            <text class="menu-icon-text">{{ item.icon }}</text>
          </view>
          <text class="menu-name">{{ item.name }}</text>
          <view class="menu-arrow">
            <text class="arrow-text">></text>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      menuList: [
        { name: "个人资料", icon: "👤" },
        { name: "健康档案", icon: "📋" },
        { name: "我的预约", icon: "📅" },
        { name: "我的报告", icon: "📊" },
        { name: "我的订单", icon: "📦" },
        { name: "设置", icon: "⚙️" },
        { name: "帮助中心", icon: "❓" },
        { name: "关于我们", icon: "ℹ️" },
      ],
    };
  },
  methods: {},
};
</script>

<style scoped>
.profile-container {
  background-color: #f5f5f5;
  min-height: 100vh;
}

.profile-header {
  background: linear-gradient(135deg, #32cd32, #228b22);
  padding: 60rpx 40rpx 40rpx;
  display: flex;
  align-items: center;
}

.profile-avatar {
  width: 120rpx;
  height: 120rpx;
  margin-right: 30rpx;
}

.profile-avatar image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4rpx solid rgba(255, 255, 255, 0.3);
}

.profile-info {
  color: white;
}

.profile-name {
  font-size: 36rpx;
  font-weight: bold;
  display: block;
  margin-bottom: 10rpx;
}

.profile-phone {
  font-size: 28rpx;
  opacity: 0.8;
}

.profile-content {
  padding: 20rpx;
}

.menu-list {
  background-color: white;
  border-radius: 20rpx;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 30rpx 20rpx;
  border-bottom: 1rpx solid #f0f0f0;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-icon {
  width: 60rpx;
  height: 60rpx;
  background-color: #f0f8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20rpx;
}

.menu-icon-text {
  font-size: 32rpx;
}

.menu-name {
  flex: 1;
  font-size: 32rpx;
  color: #333;
}

.menu-arrow {
  color: #ccc;
}

.arrow-text {
  font-size: 32rpx;
}
</style>
